using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN CategoriesEntityBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:28/09/2010 49:02:47</para>
	/// <para>Class Name: CategoriesEntityBase</para>
	/// <para>Description: ClassCategoriesEntityBase store data of table Categories</para>
	///</summary>

	[DataContract]
	public  class CategoriesEntityBase{


		private bool _InternalChangedIsNullCategory_ID=true;
		private bool _IsNullCategory_ID=true;
		private bool _InternalChangedIsNullCategoryName=true;
		private bool _IsNullCategoryName=true;
		private bool _InternalChangedIsNullCategoryDescription=true;
		private bool _IsNullCategoryDescription=true;
		private bool _InternalChangedIsNullCategoryParent_ID=true;
		private bool _IsNullCategoryParent_ID=true;
		private bool _InternalChangedIsNullCateIndex=true;
		private bool _IsNullCateIndex=true;
		private bool _InternalChangedIsNullIsHomePage=true;
		private bool _IsNullIsHomePage=true;
		private bool _InternalChangedIsNullDisplay=true;
		private bool _IsNullDisplay=true;
		private int _Category_ID;
		private string _CategoryName;
		private string _CategoryDescription;
		private int _CategoryParent_ID;
		private int _CateIndex;
		private bool _IsHomePage;
		private bool _Display;
		[DataMember]
		public bool IsNullCategory_ID{
			get{return _IsNullCategory_ID;}
			set{if(!_InternalChangedIsNullCategory_ID)_IsNullCategory_ID=value;}
		}
		[DataMember]
		public bool IsNullCategoryName{
			get{return _IsNullCategoryName;}
			set{if(!_InternalChangedIsNullCategoryName)_IsNullCategoryName=value;}
		}
		[DataMember]
		public bool IsNullCategoryDescription{
			get{return _IsNullCategoryDescription;}
			set{if(!_InternalChangedIsNullCategoryDescription)_IsNullCategoryDescription=value;}
		}
		[DataMember]
		public bool IsNullCategoryParent_ID{
			get{return _IsNullCategoryParent_ID;}
			set{if(!_InternalChangedIsNullCategoryParent_ID)_IsNullCategoryParent_ID=value;}
		}
		[DataMember]
		public bool IsNullCateIndex{
			get{return _IsNullCateIndex;}
			set{if(!_InternalChangedIsNullCateIndex)_IsNullCateIndex=value;}
		}
		[DataMember]
		public bool IsNullIsHomePage{
			get{return _IsNullIsHomePage;}
			set{if(!_InternalChangedIsNullIsHomePage)_IsNullIsHomePage=value;}
		}
		[DataMember]
		public bool IsNullDisplay{
			get{return _IsNullDisplay;}
			set{if(!_InternalChangedIsNullDisplay)_IsNullDisplay=value;}
		}
		[DataMember]
		public int Category_ID{
			get{return _Category_ID;}
			set{
				_Category_ID=value;
				if(_Category_ID!=null){
					_IsNullCategory_ID=false;
					_InternalChangedIsNullCategory_ID=true;
				}
			}
		}
		[DataMember]
		public string CategoryName{
			get{return _CategoryName;}
			set{
				_CategoryName=value;
				if(_CategoryName!=null){
					_IsNullCategoryName=false;
					_InternalChangedIsNullCategoryName=true;
				}
			}
		}
		[DataMember]
		public string CategoryDescription{
			get{return _CategoryDescription;}
			set{
				_CategoryDescription=value;
				if(_CategoryDescription!=null){
					_IsNullCategoryDescription=false;
					_InternalChangedIsNullCategoryDescription=true;
				}
			}
		}
		[DataMember]
		public int CategoryParent_ID{
			get{return _CategoryParent_ID;}
			set{
				_CategoryParent_ID=value;
				if(_CategoryParent_ID!=null){
					_IsNullCategoryParent_ID=false;
					_InternalChangedIsNullCategoryParent_ID=true;
				}
			}
		}
		[DataMember]
		public int CateIndex{
			get{return _CateIndex;}
			set{
				_CateIndex=value;
				if(_CateIndex!=null){
					_IsNullCateIndex=false;
					_InternalChangedIsNullCateIndex=true;
				}
			}
		}
		[DataMember]
		public bool IsHomePage{
			get{return _IsHomePage;}
			set{
				_IsHomePage=value;
				if(_IsHomePage!=null){
					_IsNullIsHomePage=false;
					_InternalChangedIsNullIsHomePage=true;
				}
			}
		}
		[DataMember]
		public bool Display{
			get{return _Display;}
			set{
				_Display=value;
				if(_Display!=null){
					_IsNullDisplay=false;
					_InternalChangedIsNullDisplay=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END CategoriesEntityBase*****************************************/
	/*****************************************************************************************************/
}

